<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 17-2-22
 * Time: 下午3:22
 */



function &getRef($a){
    return $a;
}

$time = date("Y-m-d H:i:s");
$str = & getRef($time);
$str = "fuck";
$str2 = & getRef($time);
echo $str.PHP_EOL;
$str2 = "today";
echo $str.PHP_EOL;
echo $str2;